AsyncAPI
This package provides all the versions of the AsyncAPI schema.
Installation
NodeJS
npm install @asyncapi/specs
Go
go get github.com/asyncapi/spec-json-schemas/v2
Usage
NodeJS
Grab a specific AsyncAPI version:
const asyncapi = require('@asyncapi/specs/schemas/2.0.0');
Get a list of versions:
const versions = require('@asyncapi/specs');
console.log(versions);
const asyncapi = versions['1.1.0'];
Go
Grab a specific AsyncAPI version:
import "github.com/asyncapi/spec_json_schemas/v2"
func Do() {
schema, err := spec_json_schemas.Get("1.1.0")
if err != nil {
panic(err)
}
}